#!/bin/bash
#========================================================================
# Author: YSLin
# Email: 
# File Name: get4thLine.sh
# Description: 
#   
# Edit History: 
#   2011-02-24    File created.
#========================================================================

#When sed reads Line 1 (2, 3), since this is not Line 4, thus matching '4!', therefore command 'd' will be executed
sed '4!d
q' line.txt
#Command 'q' will print the contents of PS (currently contains line 4) and sed will be terminated.
